session: Fix invalid pointer.
authoroliskoli <oliskoli>
Thu, 31 Jul 2008 19:49:32 +0000 (19:49 +0000)
committeroliskoli <oliskoli>
Thu, 31 Jul 2008 19:49:32 +0000 (19:49 +0000)
session.c

index a30ccf3430ebc0fc459c698059ba15e6eb8be001..e3ea63aa967b688333028d5380d3380508f8b651 100644 (file)
--- a/session.c
+++ b/session.c
@@ -56,6 +56,7 @@ start_session(const char *name, const char *filename)
 
        s = xcalloc(1, sizeof(*s));
        ENQUEUE_TAIL(&session_list, &s->Q);
+       QUEUE_INIT(&s->category_list);
        s->nr = session_ct;
        s->name = name;
        s->filename = xstrdup(filename);